﻿@model ForumTopicEditModel
@{
    ViewBag.Title = "New topic";
    Layout = "~/Views/Shared/_ForumsLayout.cshtml";
}
@section TopRssLinks {
	<ul class="small-menu rss-menu">
	<li><a href="@Url.Content("~/forums/forum/" + Model.Forum.Id + "/rss")">@Model.Forum.Name</a></li>
	</ul>
}
@section BottomRssLinks {
	<ul class="small-menu rss-menu">
	<li><a href="@Url.Content("~/forums/forum/" + Model.Forum.Id + "/rss")">@Model.Forum.Name</a></li>
	</ul>
}
<table id="ctl00__hackContainer" width="100%" cellspacing="0" cellpadding="4" border="0" class="thread">
    <tr>
        <td valign="top" style="padding:0" colspan="3" width="100%">
            <div style="display:inline"></div>
        </td>
	</tr>
	<tr>
        <td valign="top" style="padding:0">
            <table cellpadding="4" cellspacing="0" border="0" width="100%" height="100%">
                <tr> 
                    <td colspan="3" valign="top">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td vAlign="top">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
					                    <tr>
						                    <td valign="top"><div width="100%" class="ms-WPBody">
                                                <p class="ms-navheader" style="width:100%">
                                                    <a href="@Url.Action("Category", new { id = Model.Forum.CategoryId})">@Model.Forum.CategoryName</a>
	                                                &#187;
	                                                <a href="@Url.Action("Forum", new { id = Model.Forum.Id})">@Model.Forum.Name</a>
                                                </p>
                                                <br/>
                                                @*@if (!string.IsNullOrEmpty(Model.ErrorMessage))
                                                { 
                                                    @Html.ShowErrorMessage(Model.ErrorMessage)
                                                }*@
                                                <span style="float:left;display:inline;width:628px">
                                                    @{ Html.BeginForm("NewTopic", "Forums", FormMethod.Post, new { id="replyform" }); }
                                                    <table class="post-table" cellspacing="1" cellpadding="4" width="100%" align="center" style="display:table">
                                                        <tr>
                                                            <td class="ms-ToolPaneTitle" align="middle" colspan="2">
                                                                <span id="ctl00_ctl16_g_4ce72c6c_1e27_4cfb_843a_765028b072ea_ctl00__postModeTitle"></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                @Resources.EnetaMvc.ForumPostTitle: @Html.TextBoxFor(m => m.Title) @Html.ValidationMessageFor(m => m.Title)
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                @Html.EditorFor(m => m.Body) @Html.ValidationMessageFor(m => m.Body)
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                <table cellspacing="0" cellpadding="3" class="forums-tools" style="width:150px">
	                                                                <tr> 
		                                                                <td align="left">&nbsp;</td> 
		                                                                <td align="right"> 
			                                                                <div class="button"><a href="#" onclick="document.forms['replyform'].submit(); return false;">@Resources.EnetaMvc.Add</a></div> 
			                                                                <div class="button"><a href="@Url.Content("~/forums/Forum/" +  Model.Forum.Id)" >@Resources.EnetaMvc.Cancel</a></div> 
		                                                                </td> 
	                                                                </tr> 
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    @{ Html.EndForm(); }
                                                </span>
                                                </div>
						                    </td>
                    					</tr>
                    				</table>
                                </td>
                			</tr>
                        </table> 

                        <div id="ctl00_PlaceHolderMain_ctl00__ControlWrapper_RichHtmlField" style="display:inline"></div> 

					</td>
				</tr>
            </table>
		</td>
	</tr>
</table>